﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CMTVision.Widgets.Modules
{ 
    [ViewStateModeById]
    public partial class BaseTemplateColumn : CMTVision.Widgets.Impls.TemplateColumn
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected override Control GetColumnHolder()
        {
            return columnHolder;
        }

        protected HtmlGenericControlModeById _columnHolder;

        protected HtmlGenericControlModeById columnHolder
        {
            get
            {
                if (_columnHolder == null)
                {
                    _columnHolder = new HtmlGenericControlModeById("div");
                    _columnHolder.ID = "ColumnHolder";
                    _columnHolder.Attributes["class"] = Constants.UI_ColumnHolder_ClassName;
                }
                return _columnHolder;
            }
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            this.Controls.Add(_columnHolder);
        }

        public override Control FindControl(string id)
        {
            return  base.FindControl(id);
            
        }
    }
}